0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:40
Guided Lab
1:40–1:50
Bonus
1:50–2:00
Debrief
0:00 – 0:10 Recap · 10 min

Day 3 review & the policy enforcement gap

0:10 – 0:35 Lecture · 25 min

Exchange transport rules — the mail flow policy engine

Transport rules (also called mail flow rules) are condition-action pairs that Exchange evaluates on every message passing through the system. They operate before the message reaches the mailbox and cannot be bypassed by end users.

ActionWhat it doesTypical use case
Append disclaimerAdds HTML or plain text to the top or bottom of the message bodyLegal disclaimers, confidentiality notices, external email warnings
Add recipients (CC/BCC)Silently copies the message to additional recipientsCompliance journalling, manager visibility on finance approvals
Redirect message toReroutes the message to a different recipient — original recipient does not receive itRouting specific message types to a review mailbox
Block messageRejects the message and optionally sends the sender a rejection noticeBlocking outbound messages containing sensitive data patterns
Set headerAdds or modifies a message header valueTagging messages for downstream processing or filtering
Apply message classificationStamps the message with an Exchange classification labelMarking internal vs external, confidential vs public
Require TLSForces the message to be delivered over TLS or rejectedEnsuring encrypted delivery to regulated partners
Instructor note: The auto-forwarding rule is worth demonstrating live — show how easy it is for a user to set up an Outlook rule that forwards everything to Gmail, then show the transport rule that would silently block all such forwarding with a rejection notice. The contrast makes the data leakage risk tangible rather than abstract.
0:35 – 1:40 Guided lab · 65 min

Lab 3-D: Building transport rules for Lakeview Logistics

Students create five transport rules covering the most important real-world mail flow policy scenarios: a legal disclaimer, an external email warning banner, auto-forward blocking, a finance approval CC rule, and a large attachment notification. All rules are tested by sending real messages.

Rule priority matters: If two rules could both match the same message, the lower priority number wins. The disclaimer rule (priority 0) will always fire before the auto-forward block (priority 2). If the auto-forward block were priority 0 and the disclaimer were priority 2, a blocked auto-forwarded message would still get the disclaimer appended before being rejected — unnecessary and potentially confusing. Design rule priority deliberately.
Instructor note: Step 6 Rule 3 (auto-forward blocking) is the most instructive to test. Walk students through setting up an Outlook inbox rule to forward to an external address, then watching it fail with the rejection notice. The rejection message they configured in the rule will appear in the sender's inbox as an NDR — show them what it looks like and connect it to the rule that generated it.
1:40 – 1:50 Bonus material · 10 min

⭐ Bonus: Transport rules via PowerShell & MRM retention tags

⭐ Bonus A — Export and audit transport rules via PowerShell
  • Connect to Exchange Online PowerShell: Connect-ExchangeOnline -UserPrincipalName admin@[yoursubdomain]
  • List all transport rules with key fields:
    Get-TransportRule | Select-Object Name, Priority, State, Description | Sort-Object Priority | Format-Table -AutoSize
  • Export full rule configuration to JSON:
    Get-TransportRule | ConvertTo-Json -Depth 10 | Out-File .\TransportRules_Backup.json
  • In your Lab Journal: why is exporting transport rule configuration important for change management? What would you do if a rule was accidentally deleted and you had no backup?
  • Stretch: disable the Large Attachment Notify rule via PowerShell (Disable-TransportRule "LL — Large Attachment Notify"), verify it's disabled (Get-TransportRule | Select-Object Name, State), then re-enable it
⭐ Bonus B — MRM retention tags introduction
  • In the EAC, navigate to Compliance management → Retention tags (or via PowerShell: Get-RetentionPolicyTag | Select-Object Name, Type, RetentionEnabled, AgeLimitForRetention, RetentionAction | Format-Table -AutoSize)
  • Review the default retention tags that exist in the tenant — note the AgeLimitForRetention and RetentionAction for each
  • Create a new retention tag via PowerShell:
    New-RetentionPolicyTag -Name "Finance Records — 7 Year Hold" -Type Personal -RetentionEnabled $true -AgeLimitForRetention 2555 -RetentionAction MoveToArchive
  • In your Lab Journal: explain the difference between MRM retention tags (configured here) and Purview retention policies (covered in Week 8) — which takes precedence if they conflict, and what is each one designed to protect?
1:50 – 2:00 Debrief · 10 min

Reflection & preview

Learning outcomes — by end of Day 4, students can…
Explain the rule modelDescribe conditions, exceptions, actions, and priority order in Exchange transport rules
Build a legal disclaimerCreate an outbound disclaimer rule with HTML formatting and correct fallback action
Create a warning bannerPrepend an external email warning to all inbound messages from outside the organisation
Block auto-forwardingCreate a rule that detects and rejects auto-forwarded messages with a policy notification
Implement compliance routingBuild a rule that silently CCs a compliance mailbox based on subject keywords and sender group
Test rules end-to-endSend real messages to verify each rule fires correctly and produces the expected result
What you need ready
Exchange Online PowerShell module Personal external email for Rule 1 & 2 testing All shared mailboxes from Lab 3-A confirmed active Slide deck: transport rule model diagram Lab 3-D step sheet
Day 5 →Course Outline